/**   
 * @Title: ContractSignatoryController.java 
 * @Package com.betterjr.modules.contract 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author xuzx
 * @date 2017年10月31日 下午4:39:14  
 */
package com.betterjr.modules.contract;

import static com.betterjr.common.web.ControllerExceptionHandler.exec;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.dubbo.config.annotation.Reference;

/** 
 * @ClassName: ContractSignatoryController 
 * @Description: 签署方 
 * @author xuzx
 * @date 2017年10月31日 下午4:39:14 
 *  
 */
@Controller
@RequestMapping(value = "/Scf/ContractSignatory")
public class ContractSignatoryController {
    private static final Logger logger = LoggerFactory.getLogger(ContractSignatoryController.class);

    @Reference(interfaceClass = IContractSignatoryService.class)
    private IContractSignatoryService contractSignatoryService;

    @RequestMapping(value = "/queryContractSignatory", method = RequestMethod.POST)
    public @ResponseBody String queryListSignatories(final Long anContractProtocoId) {
        logger.info("查询签署方信息,入参：" + anContractProtocoId);
        return exec(() -> contractSignatoryService.querySignatoryService(anContractProtocoId), "查询签署方信息失败", logger);
    }

}
